//服务列表
import  request  from '@/utils/request'
export const  getServiceApi =  (svid) => {
  return request({
    url: '/Service/order',
    data: {
      svid
    }
  })
}

export const getServiceObjApi = ()=>{
	return request({
		url:'/User/clients'
	})
}

//发送验证码
export const postCodeApi = (phone)=>{
		return request({
			url: '/get/code',
			method:'POST',
			data:{
				tel:phone
			}
		})
}

//验证短信验证码
export const postResureApi = (phone,code)=>{
	return request({
		url: '/user/authentication',
		method:'POST',
		data:{
			tel:phone,
			code:code
		}
	})
}

//订单列表
export const postcreateOrderApi = (orderData) => {
  return request({
    url: '/pay/createOrder',
    method: 'POST',
    header: {
      token: uni.getStorageSync('token')
    },
    data: orderData
  })
}